if (CMAKE_HOST_WIN32)

	SET(GB28181KIT_DIR ${THIRD_PARTY}/windows/x86/gb28181kit)
	if(CMAKE_SIZEOF_VOID_P EQUAL 8)
		SET(GB28181KIT_DIR ${THIRD_PARTY}/windows/x64/gb28181kit)
	endif()

	SET(GB28181KIT_INCLUDE_DIR ${GB28181KIT_DIR}/include)
	SET(GB28181KIT_LIB_DIR  ${GB28181KIT_DIR}/lib)
	SET(GB28181KIT_LIBS libGbt28181Kit)
ELSE()

	IF(CMAKE_TOOLCHAIN_FILE)
		IF (CMAKE_SYSTEM_NAME STREQUAL Android)

			IF (ANDROID_ABI STREQUAL armeabi-v7a)
				SET(GB28181KIT_DIR ${THIRD_PARTY}/android/gb28181kit/armeabi-v7a)
			ELSEIF (ANDROID_ABI STREQUAL arm64-v8a)
				SET(GB28181KIT_DIR ${THIRD_PARTY}/android/gb28181kit/arm64-v8a)
			ENDIF()

			SET(GB28181KIT_INCLUDE_DIR ${GB28181KIT_DIR}/include)
			SET(GB28181KIT_LIB_DIR ${GB28181KIT_DIR}/lib)

		ELSEIF (CMAKE_C_COMPILER MATCHES "hisiv300")
			SET(GB28181KIT_DIR ${THIRD_PARTY}/hisiv300/gb28181kit)
			SET(GB28181KIT_INCLUDE_DIR ${GB28181KIT_DIR}/include)
			SET(GB28181KIT_LIB_DIR ${GB28181KIT_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "hisiv400")
			SET(GB28181KIT_DIR ${THIRD_PARTY}/hisiv400/gb28181kit)
			SET(GB28181KIT_INCLUDE_DIR ${GB28181KIT_DIR}/include)
			SET(GB28181KIT_LIB_DIR ${GB28181KIT_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "hisiv500")
			SET(GB28181KIT_DIR ${THIRD_PARTY}/hisiv500/terminal-sdgb28181kit)
			SET(GB28181KIT_INCLUDE_DIR ${GB28181KIT_DIR}/include)
			SET(GB28181KIT_LIB_DIR ${GB28181KIT_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "hisiv600")
			SET(GB28181KIT_DIR ${THIRD_PARTY}/hisiv600/gb28181kit)
			SET(GB28181KIT_INCLUDE_DIR ${GB28181KIT_DIR}/include)
			SET(GB28181KIT_LIB_DIR ${GB28181KIT_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "himix100")
			SET(GB28181KIT_DIR ${THIRD_PARTY}/himix100/gb28181kit)
			SET(GB28181KIT_INCLUDE_DIR ${GB28181KIT_DIR}/include)
			SET(GB28181KIT_LIB_DIR ${GB28181KIT_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "himix200")
			SET(GB28181KIT_DIR ${THIRD_PARTY}/himix200/gb28181kit)
			SET(GB28181KIT_INCLUDE_DIR ${GB28181KIT_DIR}/include)
			SET(GB28181KIT_LIB_DIR ${GB28181KIT_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "gcc")
			SET(GB28181KIT_DIR ${THIRD_PARTY}/gcc/gb28181kit)
			SET(GB28181KIT_INCLUDE_DIR ${GB28181KIT_DIR}/include)
			SET(GB28181KIT_LIB_DIR ${GB28181KIT_DIR}/lib)
		ENDIF()

		SET(GB28181KIT_LIBS 
			${GB28181KIT_LIB_DIR}/libGbt28181Kit.a
			${GB28181KIT_LIB_DIR}/libGbtUtil.a
			${GB28181KIT_LIB_DIR}/libRtpMedia.a
			${GB28181KIT_LIB_DIR}/libMediaCore.a
			${GB28181KIT_LIB_DIR}/libhttp.a
			${GB28181KIT_LIB_DIR}/libGbtComn.a
			${GB28181KIT_LIB_DIR}/libcomn.a
			${GB28181KIT_LIB_DIR}/libexosip2.a
			${GB28181KIT_LIB_DIR}/libosip2.a
			${GB28181KIT_LIB_DIR}/libjrtp.a
			${GB28181KIT_LIB_DIR}/libtinyxml2.a)
	ELSE()
		SET(GB28181KIT_DIR ${THIRD_PARTY}/gcc/gb28181kit)
		SET(GB28181KIT_INCLUDE_DIR ${GB28181KIT_DIR}/include)
		SET(GB28181KIT_LIB_DIR ${GB28181KIT_DIR}/lib)

		SET(GB28181KIT_LIBS 
			${GB28181KIT_LIB_DIR}/libGbt28181Kit.a
			${GB28181KIT_LIB_DIR}/libGbtUtil.a
			${GB28181KIT_LIB_DIR}/libRtpMedia.a
			${GB28181KIT_LIB_DIR}/libMediaCore.a
			${GB28181KIT_LIB_DIR}/libhttp.a
			${GB28181KIT_LIB_DIR}/libGbtComn.a
			${GB28181KIT_LIB_DIR}/libcomn.a
			${GB28181KIT_LIB_DIR}/libexosip2.a
			${GB28181KIT_LIB_DIR}/libosip2.a
			${GB28181KIT_LIB_DIR}/libjrtp.a
			${GB28181KIT_LIB_DIR}/libtinyxml2.a)
	ENDIF()	
ENDIF()
